uninstall_{$file}
Action HookDescription
Fires in uninstall_plugin() once the plugin has been uninstalled. The action concatenates the 'uninstall_' prefix with the basename of the plugin passed to uninstall_plugin() to create a dynamically-named action.Hook Information
File Location |
wp-admin/includes/plugin.php
View on GitHub
|
Hook Type | Action |
Line Number | 1338 |
Hook Parameters
This hook doesn't accept any parameters.
Usage Examples
Basic Usage
<?php
// Hook into uninstall_{$file}
add_action('uninstall_{$file}', 'my_custom_function');
function my_custom_function() {
// Your custom code here
}
Source Code Context
wp-admin/includes/plugin.php:1338
- How this hook is used in WordPress core
<?php
1333 * The action concatenates the 'uninstall_' prefix with the basename of the
1334 * plugin passed to uninstall_plugin() to create a dynamically-named action.
1335 *
1336 * @since 2.7.0
1337 */
1338 do_action( "uninstall_{$file}" );
1339 }
1340 }
1341
1342 //
1343 // Menu.
PHP Documentation
<?php
/**
* Fires in uninstall_plugin() once the plugin has been uninstalled.
*
* The action concatenates the 'uninstall_' prefix with the basename of the
* plugin passed to uninstall_plugin() to create a dynamically-named action.
*
* @since 2.7.0
*/
Quick Info
- Hook Type: Action
- Parameters: 0
- File: wp-admin/includes/plugin.php
Related Hooks
Related hooks will be displayed here in future updates.